#pragma once

class GILock {
	PyGILState_STATE state;
public:
	GILock() :
		state(PyGILState_Ensure()){ }
	~GILock(){
		PyGILState_Release(state);
	}
};